<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>框架测试页</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<script type="text/javascript" src="js/jquery126.js"></script>
	<script type="text/javascript">
		$(function(){
			$("#myButton").click(function(){
				$.getJSON("demo!testJSON.my",function(json){
					alert(json.userName);
					alert(json.password);
				});
			});
		});
	</script>
  </head>
  
  <body>
    <form action="demo.my" method="GET">
    	<table>
    		<tr><td align="right">测试字符串：</td><td><input name="testString" /></td></tr>
    		<tr><td align="right">userName：</td><td><input name="user.userName" /></td></tr>
    		<tr><td align="right">password：</td><td><input name="user.password" type="password" /></td></tr>
    		<tr><td align="right" colspan="2"><input type="submit" value="提交" /></td></tr>
    	</table>
    </form>
    <br/>
    <form action="demo!fileUpload.my" method="POST" enctype="multipart/form-data" >
    	<table>
    		<tr><td align="right">文件上传：</td><td><input name="myFile" type="file" /></td></tr>
    		<tr><td align="right" colspan="2"><input type="submit" value="提交" /></td></tr>
    	</table>
    </form>
    <br/>
    <input type="button" id="myButton" value="测试JSON数据" />
    <br/>
  </body>
</html>
